import { axios } from "@/utils/axios"

// 登录
export function login(data: any) {
    return axios({
        method: "post",
        url: "/login",
        data: data,
    })
}

// 获取验证码
export function getSmsCode(phone: string) {
    return axios({
        method: "get",
        url: "/smscode",
        params: {
            phone: phone,
        },
    })
}

// 获取用户信息
export function getInfo() {
    return axios({
        method: "get",
        url: "/info",
    })
}

// 获取菜单
export function getMenus() {
    return axios({
        method: "get",
        url: "/permission/menu",
    })
}
